#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QProgressBar>
#include <QLabel>
#include <QSpinBox>
#include <QFontComboBox>
#include <QLayout>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

private:
    QProgressBar *progress;
    QLabel *currentFile;
    QSpinBox *fontSizeBox;
    QFontComboBox *fontNameBox;

    void initUI();
    void initSignalSlots();

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_italics_act_triggered(bool checked);

    void on_bold_act_triggered(bool checked);

    void on_underLine_act_triggered(bool checked);

    void on_textEdit_copyAvailable(bool b);

    void on_textEdit_selectionChanged();

private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
